import { ref, computed } from 'vue';
export default function() {
    const counter = ref(2);

    const ride = computed(() => counter.value * 2);

    const add = () => counter.value++;
    const reduce = () => counter.value--;

    return {
        counter,
        ride,
        add,
        reduce
    }
}